<?php
  //将时间戳转化为星期数
  function week_info($date){
	  switch($date){
				  case "1":
				     $week_day = "星期一";
					 break;
			      case "2":
				     $week_day = "星期二";
					 break;
			      case "3":
				     $week_day = "星期三";
					 break;
				  case "4":
				     $week_day = "星期四";
					 break;
				  case "5":
				     $week_day = "星期五";
					 break;
				  case "6":
				     $week_day = "星期六";
					 break;
			      case "7":
				     $week_day = "星期日";
					 break;					   
			  }
		return $week_day;
  }

?>